package com.xujf.demo

import android.app.Application

/**
 * Created by xujf on 2018/1/31.
 */
class App : Application() {

    companion object {
        var application: App? = null

        fun getContext(): App? {
            return application
        }
    }

    override fun onCreate() {
        super.onCreate()
        application = this
    }
}